import { useSearchParams } from "react-router-dom";

function Detail() {
    const [search] = useSearchParams();
    // setSearch({
    //     name: 'yz',
    //     age: 20,
    // })
    console.log(search.get('name'));
    console.log(search.get('age'));
    console.log(search, 'search');
    return (
        <div>this is detailPage</div>
    )
};

export default Detail;